﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections.Specialized;

public partial class UserControls_SaleProductsList : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
       
    }
    protected void rateImageChange(object source, DataListCommandEventArgs e)
    {
        Image rateImage = e.Item.FindControl("starImage") as Image;
        
    }
    // fires when an Add to Cart button is clicked
    protected void add_ItemCommand(object source, DataListCommandEventArgs e)
    {
        // The CommandArgument of the clicked Button contains the ProductID 
        string productId = e.CommandArgument.ToString();
        // Add the product to the shopping cart
        
        ShoppingCartAccess.AddItem(productId);
    }

    
}